package com.study.microservice.springcloud.service;

import com.study.microservice.springcloud.pojo.User;
import org.springframework.stereotype.Component;

/**
 * Author : 周世雄 <br>
 * Date : 2018/11/12 15:05 <br>
 * E-mail : zhoushixiong@chinasoftinc.com
 * Description :
 */
@Component
public class FeignClientFallback implements UserFeignClient{
    @Override
    public User findById(Long id) {
        User user = new User();
        user.setId(-1L);
        user.setUsername("默认用户");

        return user;
    }
}
